package menu.commands;

import util.commands.Command;
import view.Frame;

/**
 * Allows the user to undo the command just executed. And restores the canvas to
 * its p[revious state.
 * 
 * @author Josue Mirtil
 * 
 */
public class Undo implements Command<Frame>
{
    @Override
    public void execute(Frame target)
    {
        target.undoCanvas();
        // TODO: when there's nothing to undo this option must not be able to be
        // clicked
    }
}
